<!--
  Generated template for the ChangepwdPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>密码修改</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>

	<ion-item class="style1">
	<!--[(ngModel)]="phone_name2" 从ts绑定到html 你绑定一个input控件，你在里面输入值，直接拿绑定的对象值，不用去取input的控件里面的结果-->
		<ion-label >绑定手机号</ion-label>
		<ion-input type="text" [(ngModel)]="phone_name2" readonly></ion-input>
	</ion-item>
	
	<ion-item>
		<ion-label >验证码</ion-label>
		<ion-input type="number" value="" max="999999" placeholder="验证码" [(ngModel)]="veritycode"></ion-input>
		<button class="send" ion-button item-end icon-left (click)="getSMS()" *ngIf="date <= 0"><ion-icon name="send"></ion-icon>发送验证码</button>
		<button class="send" ion-button item-end icon-left  *ngIf="date > 0"><ion-icon name="send"></ion-icon>{{date}}s</button>
	</ion-item>
	
	
		<ion-item>
		<ion-label >新密码</ion-label>
		<ion-input type="password" placeholder="请设置新密码" [(ngModel)]="new_pwd"  clearInput></ion-input>
	</ion-item>
		<ion-item>
		<ion-label >确认密码</ion-label>
		<ion-input type="password" placeholder="确认密码" [(ngModel)]="confirm_pwd" clearInput></ion-input>
	</ion-item>

	<div class="style2">
		<button ion-button full (click)="saveChange()">完成</button>
	</div>
</ion-content>
